package com.listsorter.test;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class DoubleItem
{

   double value;

   DoubleItem(double value)
   {
      this.value = value;
   }

   public double sortOrder()
   {
      return this.value;
   }

   public double customOrder()
   {
      return this.value;
   }

   public Double customOrder2()
   {
      return this.value;
   }

   public static List<DoubleItem> getItemList()
   {
      Random r = new Random();
      List<DoubleItem> list = new ArrayList<DoubleItem>();
      for (int i = 15; i >= 0; i--)
      {
         list.add(new DoubleItem(i * r.nextDouble()));

      }
      return list;
   }
}
